﻿
//首页密码输入处理
function enterSubmit(event)
{
    var obj = event.srcElement?event.srcElement:event.target;
    if(event.keyCode==13)
    {
        login();
       //WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("MPContainer1Template$lbttSignin", "", false, "", "/user/login.htm", false, true));
    }
}
function ChangeMap(lang)
{
    document.getElementById("map").src="/images/map_"+lang+".gif";
}
function login()
{
    clear("__LastVIEWSTATE_SessionKey");
    clear("__VIEWSTATE");
    var frm = document.getElementById("Form1");
    frm.action="/user/login.htm";
    frm.submit();
}
function clear(id)
{
    try{
        var obj = document.getElementById("__LastVIEWSTATE_SessionKey");
        obj.parentElement.removeChild(obj);
       }catch(e){}
}